<template>
  <div>
    <top-back :topBackParams="topBackParams" v-if="!isWX"></top-back> 
    <div class="loginCon">
      <login-nav :navList="navList"></login-nav>
      <register :dzData="dzData"></register>
    </div>
  </div>
</template>

<script>
import Vue from 'vue'
import TopBack from '@/components/TopBack/index.vue'
import loginNav from '../components/nav/index.vue'
import register from '../components/register/index.vue'
import { isWeixinCient } from '@/utils/validate'

export default Vue.extend({
  name: 'index',
  components: {
    TopBack,
    loginNav,
    register
  },
  data() {
    return {
      topBackParams: {
        headerTitle: '会员注册',
        bgColor: '#f8f8f8',
        position: 'absolute'
      },
      navList: [
        { title: '用户登录', link: '/mb/loginRegister/login', active: false },
        { title: '立即注册', link: '/mb/loginRegister/register', active: true }
      ]
    }
  },
  computed: {
    isWX() {
      return isWeixinCient()
    }
  }
})
</script>

<style lang="scss">
@import "src/styles/loginRegister";
</style>
